package cn.ybx.seaIslands.models;

public class Point {
    private int lantitude;
    private int longitude;

    public Point(int lantitude, int longitude) {
        this.lantitude = lantitude;
        this.longitude = longitude;
    }

    public int getLantitude() {
        return lantitude;
    }

    public void setLantitude(int lantitude) {
        this.lantitude = lantitude;
    }

    public int getLongitude() {
        return longitude;
    }

    public void setLongitude(int longitude) {
        this.longitude = longitude;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        } else {
            if (this.getClass() == obj.getClass()) {
                Point point = (Point) obj;
                return this.getLongitude() == point.getLongitude() && this.getLantitude() == point.getLantitude();
            } else {
                return false;
            }
        }

    }
}
